package com.example.aigc_education.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.aigc_education.domain.Exam;
import com.example.aigc_education.domain.po.SelectExamByCourseIdPO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author 23918
 * @description 针对表【stu_exam】的数据库操作Mapper
 * @createDate 2024-06-09 20:22:24
 * @Entity com.example.aigc_education.domain.Exam
 */
public interface ExamMapper extends BaseMapper<Exam> {


    List<SelectExamByCourseIdPO> selectExamByCourseId(@Param("courseId") Long courseId);
    List<SelectExamByCourseIdPO> selectExamByCourseIdAndUserId(@Param("courseId") Long courseId, @Param("userId") Long userId);
    List<SelectExamByCourseIdPO> selectExamByClassId(@Param("classId") Long classId);
    List<SelectExamByCourseIdPO> selectAllExam();
}
